package com.common.shared;

import com.google.gwt.user.client.rpc.IsSerializable;

public class DSFieldOptions implements IsSerializable {

	public static final int FT_STRING = 0;
	public static final int FT_INTEGER = 2;
	public static final int FT_DOUBLE = 3;
	public static final int FT_LONG = 4;
	public static final int FT_BOOLEAN = 5;

	private String fieldName;
	private String fieldTitle;
	private int fieldType;
	private int fieldLength;
	private boolean visible;

	public DSFieldOptions() {

	}

	public DSFieldOptions(String fieldName, String fieldTitle, int fieldType,
			int fieldLength, boolean visible) {
		setFieldName(fieldName);
		setFieldTitle(fieldTitle);
		setFieldType(fieldType);
		setVisible(visible);
	}

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public String getFieldTitle() {
		return fieldTitle;
	}

	public void setFieldTitle(String fieldTitle) {
		this.fieldTitle = fieldTitle;
	}

	public int getFieldType() {
		return fieldType;
	}

	public void setFieldType(int fieldType) {
		this.fieldType = fieldType;
	}

	public int getFieldLength() {
		return fieldLength;
	}

	public void setFieldLength(int fieldLength) {
		this.fieldLength = fieldLength;
	}

	public boolean isVisible() {
		return visible;
	}

	public void setVisible(boolean visible) {
		this.visible = visible;
	}

}
